package main

import (
	"algorithm/Link"
	"fmt"
)

func main3() {

	mystack := Link.NewStack()

	for i := 0; i < 100; i++ {
		mystack.Push(i)
	}
	for data := mystack.Pop(); data != nil; data = mystack.Pop() {
		fmt.Println(data)
	}
}

func main() {
	myQueue := Link.NewQueueLink()

	for i := 0; i < 10; i++ {
		myQueue.EnQueueLink(i)
	}

	for data := myQueue.DeQueueLink(); data != nil; data = myQueue.DeQueueLink() {

		fmt.Println(data)

	}
}
